package com.cj;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author cc
 * @date 2025-05-14 10:21
 **/

public class Demo02 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(JavaConfig.class);
        DataSource bean = ctx.getBean(DataSource.class);
        System.out.println("bean = " + bean);

    }
}
